package com.chinacoal.microservice.fallback;

import com.chinacoal.microservice.MessageManagementClient;
import com.chinacoal.microservice.pojo.CcmsSmartleasingMessage;
import com.chinacoal.microservice.util.CodeMsg;
import com.chinacoal.microservice.util.QueryCriteria;
import com.chinacoal.microservice.util.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 运维管理-消息管理-异常回退类
 * @date 2020-12-31 16:41
 */
@Component
public class MessageManagementClientFallback implements MessageManagementClient {
    /**
     * @Description: 查询所有的消息信息（带分页）
     * @author zhuliang
     * @date 2020/12/31 16:49
     */
    @Override
    public Result<List<CcmsSmartleasingMessage>> getAllByPage(QueryCriteria queryCriteria, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 条件查询所有的消息信息（带分页）
     * @author zhuliang
     * @date 2020/12/31 16:49
     */
    @Override
    public Result<List<CcmsSmartleasingMessage>> getAllByCondition(QueryCriteria queryCriteria, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }
}
